import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
    state:{
      createTeam_isShow: false,
      invitePlayer_isShow: false,
      entryTeamReq_isShow: false,
      all_teamId: '',
      all_isCaptain: '',
    },
    mutations:{
      updateCreateTeam_isShow(state,afterUpdate){
        state.createTeam_isShow = afterUpdate;
      },

      updateInvitePlayer_isShow(state,afterUpdate){
        state.invitePlayer_isShow = afterUpdate;
      },

      updateEntryTeamReq_isShow(state,afterUpdate){
        state.entryTeamReq_isShow = afterUpdate;
      },

      updateAll_teamId(state,afterUpdate){
        state.all_teamId = afterUpdate;
      }
    }

});
